<template>
  <div class="">
    <table>
      <thead>
        <tr>
          <th>姓名</th>
          <th>年龄</th>
          <th>爱好</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(item, index) in tableDate" :key="index">
          <td>{{ item.name }}</td>
          <td>{{ item.age }}</td>
          <td>{{ item.hobby }}</td>
          <td>
            <slot :i="index" :row="item"></slot>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  props: {
    tableDate: Array,
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
  components: {},
};
</script>

<style lang='scss'>
</style>
